package PangModel;

import java.awt.*;
import java.util.ArrayList;

/**
 * Created by YILMAZ on 23/4/2015.
 */
public class MachineGun extends Weapon {

    public MachineGun()
    {
        height = 1;
        width = 1;
    }

    //@Override
    public ArrayList<Bullet> shoot(Point p, boolean isThereBulletsOnAir) {
        MGBullet left = new MGBullet();
        left.setDirection(GameObject.MGBULLET_DIRECTION_LEFT);

        MGBullet right = new MGBullet();
        right.setDirection(GameObject.MGBULLET_DIRECTION_RIGHT);

        left.setCoordinates(p); right.setCoordinates(p);

        ArrayList<Bullet> bullets = new ArrayList<Bullet>();
        bullets.add(left); bullets.add(right);

        return bullets;
    }
}
